import { createRouter, createWebHistory } from 'vue-router'
import HomeView from "../views/HomeView.vue"
import PersonManagement from "../views/person/PersonManagement.vue";

const routes = [
    {
        path: '/',
        name: 'HomeView',
        component: HomeView,
        props: true
    },
    {
        path: '/persons',
        name: 'PersonManagement',
        component: PersonManagement,
        props: true
    },
]

const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router